package model

type Account struct {
	Id               string `gorm:"column:id"`
	UserId           string `gorm:"column:user_id"`
	BrokerId         string `gorm:"column:broker_id"`
	BrokerSaasId     string `gorm:"column:broker_saas_id"`
	AccountType      string `gorm:"column:account_type"`
	TradeType        string `gorm:"column:trade_type"`
	Balance          string `gorm:"column:balance"`
	FreeMargin       string `gorm:"column:free_margin"`
	UsedMargin       string `gorm:"column:used_margin"`
	CreateStamp      string `gorm:"column:create_stamp"`
	AccountId        string `gorm:"column:account_id"`
	IsDelete         string `gorm:"column:is_delete"`
	Equity           string `gorm:"column:equity"`
	Profit           string `gorm:"column:profit"`
	Name             string `gorm:"column:name"`
	CloseNetprofit   string `gorm:"column:close_netprofit"`
	CloseAllprofit   string `gorm:"column:close_allprofit"`
	Netprofit        string `gorm:"column:netprofit"`
	InitMoney        string `gorm:"column:init_money"`
	Status           string `gorm:"column:status"`
	OtherAccountType string `gorm:"column:other_account_type"`
	AccountLevelId string `gorm:"column:account_level_id"`
}

func (Account) TableName() string {
	return "account"
}
